using System;
using System.Collections.Generic;
using System.Text;

namespace Wrath.Xml
{
    public static class HTMLConverter
    {
        public static string ToW3CHTML(string fgHTML)
        {
            fgHTML = fgHTML.Replace("<list>", "<ul>");
            fgHTML = fgHTML.Replace("</list>", "</ul>");

            fgHTML = fgHTML.Replace("decoration=\"underline\"", "style=\"border-bottom: solid 1px #000000;\"");
            fgHTML = fgHTML.Replace("<linklist>", "");
            fgHTML = fgHTML.Replace("</linklist>", "");

            fgHTML = fgHTML.Replace("<link class=", "<a href=");
            fgHTML = fgHTML.Replace("</link>", "</a>");

            fgHTML = fgHTML.Replace("<h>", "<div style=\"font-size: 110%; margin-top: 10px; margin-bottom: 5px; font-weight: bold;\">");
            fgHTML = fgHTML.Replace("</h>", "</div>");

            return fgHTML;
        }
    }
}
